<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>浮动-浮动元素对兄弟元素得影响</title>
	<style>
		.one{
			width: 100px;
			height: 100px;
			background-color: red;
			/* 开启浮动 */
			float: left;
			/* 浮动元素特性:脱离文档流 原先位置不保留 飘在文档流上方  */
		}
		.two{
			width: 100px;
			height: 100px;
			background-color: blue;
			/*清除浮动 */
			clear: both;
		}
	</style>
</head>
<body>
	<div class="one"></div>
	<div class="two"></div>
</body>
</html>